package com.crm.model.mdao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.crm.model.mpojo.Powerandrole;

@Mapper
public interface PowerandroleMapper {
    int deleteByPrimaryKey(Integer ruId);

    int insert(Powerandrole record);

    int insertSelective(Powerandrole record);

    Powerandrole selectByPrimaryKey(Integer ruId);

    int updateByPrimaryKeySelective(Powerandrole record);

    int updateByPrimaryKey(Powerandrole record);
    
     List<Powerandrole> selectByRoleId(@Param("roleId") Integer roleId);
     
     int  deleteByRoleId(@Param("roleId") Integer roleId);
}